package com.itheima.demo;

import java.util.ArrayList;

public class ObjectDemo {
    public static void main(String[] args) {
        Student stu1 = new Student("ww",23);
        Student stu2 = new Student(null,23);
        System.out.println(stu1.equals(null));
        ArrayList<Student> list = new ArrayList<>();
        System.out.println(stu1.equals(list));
        System.out.println(stu1.equals(stu2));
    }
}
